<!doctype html>
<html lang="zh-CN">
<head>
     <include file="include/head" title="预约管理" />
</head>

<body style="background:#f2f2f2;">
	<div class="header-blank"></div>
    <div class="header">
		预约管理
		<span class="left">
			<a href="{:U('Index/ucenter')}"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span></a>
		</span>
	</div>
	
	<div class="orderlist-tab-blank"></div>
	<div class="orderlist-tab">
		<ul>
			<li <if condition="$_GET['no_use'] neq ''">class="active"</if>><a href="{:U('Index/booking_list?no_use=1')}">可预约</a></li>
			<li <if condition="$_GET['no_use'] eq ''">class="active"</if>><a href="{:U('Index/booking_list')}">已预约</a></li>
		</ul>
	</div>
	<div class="orderlist-main">
		<volist name="list" id="vo">
		<div class="orderlist-item">
			<div class="no"><span class="gray">订单号：</span>{$vo.sn}</div>
			<div class="money">
				<span class="detail"><a href="{:U('Index/order_detail?id='.$vo['order_id'])}">订单详情</a></span>
				<span class="gray">商品名:</span>{$vo.title}
			</div>
			<div class="time"><span class="gray">时间:</span>{$vo.pay_time|date="Y-m-d H:i:s", ###}</div>
			<div class="status">
				预约状态：<span class="red">{:get_booking_status($vo['status'])}</span>
				<if condition="$vo['status'] eq 3"><a href="{:U('booking_step1_unit?id='.$vo['id'])}" class="btn">立即预约</a></if>
				<!-- <if condition="$vo['status'] eq 1"><a href="{:U('booking_step_unit?id='.$vo['id'])}" class="btn">重新预约</a></if> -->
				<if condition="($vo['status'] eq 0) OR ($vo['status'] eq 2)"><a href="{:U('booking_detail?id='.$vo['booking_id'])}" class="btn">预约详情</a></if>
				<!--<if condition="$vo['status'] lt 3 and $vo['status'] gt 0">
					<a href="{:U('Index/order_cancle?id='.$vo['id'])}" class="btn" onclick="return confirm('取消订单已支付的费用将原路返回，确定取消吗？');">取消</a>
				</if>-->
			</div>
		</div>
		</volist>
	</div>
	
	<include file="include/bottom" />

</body>
</html>